import axios from "./axios";
//登录接口
export function loginapi(data) {
    return axios({
        url: '/user/login',
        method: 'post',
        data
    });
}
//判断手机号是否被注册
export function telapi(data) {
    return axios({
        url: '/user/docheckphone',
        method: 'post',
        data
    });
}
// 发送验证码
export function telcode(data) {
    return axios({
        url: '/user/dosendmsgcode',
        method: 'post',
        data
    });
}
//  确认验证码
export function testcode(data) {
    return axios({
        url: '/user/docheckcode',
        method: 'post',
        data
    });
}
//完成注册
export function registfn(data) {
    return axios({
        url: '/user/dofinishregister',
        method: 'post',
        data
    });
}
